package neu.soft.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import neu.soft.entity.GoodInfo;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class PayableOrderQuery extends BasePageQuery{

    @JsonSerialize(using = ToStringSerializer.class)
    private Long payableOrderId;

    private BigDecimal payableCost;

    private Integer financialOrderId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyy-MM-dd HH:mm:ss")
    private LocalDateTime createdDate;

    private String payType;

    private List<GoodInfo> goodInfoList;
}
